STEP 2: The DISPLAY and MODE attributes

Click the play button on the Beatnik Player to the right and start the music file playing. Now right-click (click-and-hold for Mac users) anywhere on the control panel. In the pop-up menu that appears you should see the option "Song Display", which will already be checked. Click on the option "System Display" and see what happens. You should now see how the song information display and transport controls completely vanished and were replaced by a global mute button at the top right and an oscilloscope-type display in the lower portion. Now, click just once on the oscilloscope display. You should see how it changes to a meters-style display mode.

So, it's evident that the Beatnik Player has numerous appearances that it can take on. While the user always has the ability to alter the control panel's appearance using the pop-up menu, is there a way that the author can force an embedded Beatnik player to show up with one of these cool alternate displays? This is where the DISPLAY and MODE attributes come in. First let's explain the concept behind the control panel's display options.

System Versus Song

There are essentially two types of information that the player's control panel can display: song information, or system information. The author can force the player's control panel into one of these two types of display by using the DISPLAY attribute in the EMBED tag and specifying a value of either SONG or SYSTEM. The attribute's syntax could be:

What About Those Meters Then?

There is one thing that is still unaccounted for. Remember how at the beginning of this step you changed the control panel using the pop-up menu? And then proceeded to change it further by clicking on the lower portion? This brought up a meters-style display mode. If you were to bring up the pop-up menu again while in this display mode, you would see how the menu still shows 'System Display' as checked. This is because the meters are just a variation on the system display. When the meters are showing, you are still seeing the global audio output for all Beatnik players embedded on the same page, or in completely different frames or browser windows. But the audio output is being presented in a different fashion.

This is where the MODE attribute comes in. The MODE attribute allows an author to further customize the style of display that is used when the panel is in the SONG or SYSTEM display. When the panel is in SONG display, there is only one option that can be used for the MODE attribute: COPYRIGHT. This mode shows information for the player's currently loaded music or audio file in the lower portion of the control panel. On the other hand, when the panel is in SYSTEM display, you can specify a value of either SCOPE or METERS for the MODE attribute: